class Dog:
    def __init__(self,n):
        self.age = n
    def info_print(self):
        print(self.age)

wangcai = Dog(5)

print(wangcai.age)

wangcai.info_print()

print(Dog.age)
